package org.dromara.system.domain.bo;

import org.dromara.system.domain.AppAgreement;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * App用户协议和隐私政策业务对象 app_agreement
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppAgreement.class, reverseConvertGenerate = false)
public class AppAgreementBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 协议类型：1=用户协议 2=隐私政策
     */
    private Long type;

    /**
     * 协议标题
     */
    private String title;

    /**
     * 协议内容，存富文本或HTML
     */
    private String content;

    /**
     * 语言标识，如 zh-CN, en-US
     */
    private String lang;

    /**
     * 状态：0=禁用 1=启用
     */
    private Long status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
